
import GuideItemModel from "./GuideItemModel";
import BaseItemModel from "../../cfw/mvc/BaseItemModel";

export default class GuideInfo extends BaseItemModel {

    private data: any[]

    private stepList: GuideItemModel[] = []

    constructor(id, data) {
        super()
        this.setID(id)
        this.data = data;
    }

    getStepList() {
        return this.stepList;
    }

    addStep(item: GuideItemModel) {
        this.stepList.push(item)
    }

    getStep(index: number) {
        return this.stepList[index]
    }

    size() {
        return this.stepList.length;
    }

    getConditionType() {
        return this.data[0]
    }

    getConditionValue() {
        return this.data[1]
    }

}
